@if($errors->has('name'))<!-- //有任何错误 -->
<ul class="alert alert-danger"><!-- //bootstrap样式 -->
@foreach($errors->get('name') as $error)<!-- //获取所有错误并循环 -->
    <li>{{$error}}</li>
@endforeach
</ul>
@endif
{!! Form::open(['route'=>['task.store','projectid'=>$project->id],'class'=>'form-inline']) !!}

        <td >
            {!! Form::text('name',null,['placeholder'=>'填写要完成的任务','class'=>'form-control']) !!}
        </td>
        <button type="submit" class="btn btn-success">
            <i class="fa fa-plus"></i>
        </button>
{!! Form::close() !!}